<!--{if $op == 'invite'}-->
	<form action="action.php?ac=ajax&op=invite&id={$id}" method="post"  id="ajaxFormAjax" name="ajaxFormAjax"  class="ajaxForm">
	<table cellpadding="2" border="0">
			<tbody>
				<tr>
					<td align="center">
							<label for="ivu_select1" id="ivu_loading">从左侧列表里选择要邀请的好友...</label>
					</td>
				</tr>
				<tr>
					<td>
						<select class="ivu_sctbox" id="ivu_select1" size=10 multiple=true style="margin-right: 8px;height: 274px;" onclick="move.right();"><!--{loop $users $val}--><option value="{$val['uid']}">{$_SN[$val['uid']]}</option><!--{/loop}--></select>
						<select class="ivu_sctbox" id="ivu_select2" size=10 multiple=true style="height: 274px;"  onclick="move.left();"></select>
						<input type="hidden" name="friend" id="friend">
					</td>
				</tr>
			</tbody>
		</table>
	</form>
<script type="text/javascript">
move.left_id = $('ivu_select1');
move.right_id = $('ivu_select2');
base.setOk(true, '确定', function(){
	var data = [];
	for(var i=0; i<$('ivu_select2').options.length;i++){
		data[data.length] = $('ivu_select2').options[i].value;
	};
	if(data.length == 0){
		alert('请选择要邀请的好友');return false;
	}
	document.forms['ajaxFormAjax'].friend.value = data.join(',');
	Form.submitDo('ajaxFormAjax');
});
</script>
<!--{elseif $op == 'purview'}-->

	<form action="action.php?ac=ajax&op={$op}&id={$id}" method="post"  id="ajaxFormAjax" name="ajaxFormAjax"  class="ajaxForm">
	<table cellpadding="2" border="0">
			<tbody>
				<tr>
					<td width=30></td>
					<td width=200>用户名</td>
					<td width=100>头像</td>
				</tr>
				<!--{loop $users $val}-->
				<tr>
					<td><input type="checkbox" name='uids[]' value="{$val['uid']}"></td>
					<td><a href="space.php?uid={$val['uid']}" target="_blank">{$_SN[$val['uid']]}</a></td>
					<td><a href="space.php?uid={$val['uid']}" target="_blank"><img src="<!--{avatar($val['uid'],small)}-->" /></a></td>
				</tr>
				<!--{/loop}-->
			</tbody>
		</table>
	</form>
<script type="text/javascript">
base.setOk(true, '通过审核', function(){
	Form.submitDo('ajaxFormAjax');
});
</script>
<!--{elseif $op == 'share'}-->
<form action="action.php?ac=ajax&op={$op}&id={$id}"  id="ajaxFormAjax" name="ajaxFormAjax"  class="ajaxForm" method="post">
	<table>
		<tbody><tr>
			<td>分享说明:<br /><textarea onkeyup="showPreview(this.value, 'quote')" onkeydown="ctrlEnter(event, 'sharesubmit_btn')" style="width: 470px;" cols="72" name="general" id="general"></textarea></td>
		</tr>
		</tbody>
	</table>
	<br/>
	<ul class="box">
		<li id="share__li">
			<div class="title">
				<div class="r_option"></div>
				分享了一个活动<span class="time">现在</span>
			</div>
			<div class="feed">
				<a href="action.php?ac=show&id={$event['id']}"><img class="summaryimg image"  onerror="this.src='action/img/event.png'"  alt="{$event['subject']}" src="<!--{if $event['picture']}-->{$event['picture']}<!--{else}-->action/img/event.png<!--{/if}-->" /></a>
				<div class="detail">
					<b><a href="action.php?ac=show&id={$event['id']}">{$event['subject']}</a></b>
					<br/>组织者：{$_SN[$event['uid']]}
					<br/>类型：{$event['eventtype']}
					<br/>地点：{$event['p']} {$event['c']} {$event['area']}
				</div>
				<div class="quote"><span class="q" id="quote"></span></div>
				<div style="clear:both;"></div>
			</div>
		</li>
	</ul>
</form>
<script type="text/javascript">
base.setOk(true, '分享', function(){
	Form.submitDo('ajaxFormAjax');
});
</script>
<!--{elseif $op == 'remember'}-->
	<!--{if $data}-->
			<form action="action.php?ac=ajax&op={$op}&id={$id}" method="post"  id="ajaxFormAjax" name="ajaxFormAjax"  class="ajaxForm">
				<p>你确定要向活动的参与者发送提醒通知？</p>
				<p>活动名称：{$data['subject']}</p>
			</form>
		<script type="text/javascript">
		base.setOk(true, '确定', function(){
			Form.submitDo('ajaxFormAjax');
		});
		</script>
	<!--{else}-->
		<p>没有找到相关数据</p>
	<!--{/if}-->
<!--{elseif $op == 'delete'}-->
	<!--{if $data}-->
			<form action="action.php?ac=ajax&op={$op}&id={$id}" method="post"  id="ajaxFormAjax" name="ajaxFormAjax"  class="ajaxForm">
				<p>你确定要删除此活动？</p>
				<p>活动名称：{$data['subject']}</p>
			</form>
		<script type="text/javascript">
		base.setOk(true, '确定', function(){
			Form.submitDo('ajaxFormAjax');
		});
		</script>
	<!--{else}-->
		<p>没有找到相关数据</p>
	<!--{/if}-->
<!--{elseif $op == 'upload'}-->
	<!--{if $purview}-->
		<style>
		.fu_list {width:475px;background:#ebebeb;font-size:12px;}
		.fu_list td {padding:5px;line-height:20px;background-color:#fff;}
		.fu_list table {width:100%; border:1px solid #ebebeb;}
		.fu_list thead td {background-color:#f4f4f4;}
		.fu_list b {font-size:14px;}
		a.files {width:90px;height:30px; overflow:hidden;display:block;border:1px solid #BEBEBE;background:url(action/img/fu_btn.gif) left top no-repeat;text-decoration:none;}
		a.files:hover { background-color:#FFFFEE;background-position:0 -30px;}
		a.files input { margin-left:-350px;font-size:30px; cursor:pointer; filter:alpha(opacity=0);opacity:0;}
		a.files, a.files input {outline:none;hide-focus:expression(this.hideFocus=true);}
		</style>
		<form id="uploadForm" name="uploadForm" action="action.php?ac=upload&id={$id}">
		  <table border="0" cellspacing="1" class="fu_list">
			<thead>
			  <tr>
				<td colspan="2"><b>上传文件</b></td>
			  </tr>
			</thead>
			<tbody>
			  <tr>
				<td align="right" width="15%" style="line-height:35px;">添加文件：</td>
				<td><a href="javascript:void(0);" class="files" id="idFile"></a> <img id="idProcess" style="display:none;" src="action/img/loading.gif" /></td>
			  </tr>
			  <tr>
				<td colspan="2"><table border="0" cellspacing="0">
					<thead>
					  <tr>
						<td>文件路径</td>
						<td width="100"></td>
					  </tr>
					</thead>
					<tbody id="idFileList">
					</tbody>
				  </table></td>
			  </tr>
			  <tr>
				<td colspan="2" style="color:gray">温馨提示：最多可同时上传 <b id="idLimit"></b> 个文件，只允许上传 <b id="idExt"></b> 文件。 </td>
			  </tr>
			  <tr>
				<td colspan="2" align="center" id="idMsg">
					<input type="button" value="开始上传" id="idBtnupload" disabled="disabled" />
					<input type="button" value="全部取消" id="idBtndel" disabled="disabled" />
				</td>
			  </tr>
			</tbody>
		  </table>
		</form>
		<script type="text/javascript">
		var fu = new FileUpload("uploadForm", "idFile", { Limit: 20, ExtIn: ["jpg", "gif"],
				onIniFile: function(file){ file.value ? file.style.display = "none" : this.Folder.removeChild(file); },
				onEmpty: function(){ alert("请选择一个文件"); },
				onLimite: function(){ alert("超过上传限制"); },
				onSame: function(){ alert("已经有相同文件"); },
				onNotExtIn:        function(){ alert("只允许上传" + this.ExtIn.join("，") + "文件"); },
				onFail: function(file){ this.Folder.removeChild(file); },
				onIni: function(){
						var arrRows = [];
						if(this.Files.length){
								var oThis = this;
								Each(this.Files, function(o){
										var a = document.createElement("a"); a.innerHTML = "取消"; a.href = "javascript:void(0);";
										a.onclick = function(){ oThis.Delete(o); return false; };
										arrRows.push([o.value, a]);
								});
						} else { arrRows.push(["<font color='gray'>没有添加文件</font>", " "]); }
						AddList(arrRows);
						$("idBtnupload").disabled = $("idBtndel").disabled = this.Files.length <= 0;
				}
		});
		$("idBtnupload").onclick = function(){
				var arrRows = [];
				Each(fu.Files, function(o){ arrRows.push([o.value, " "]); });
				AddList(arrRows);
				fu.Folder.style.display = "none";
				$("idProcess").style.display = "";
				$("idMsg").innerHTML = "正在添加文件中，请稍候……<br />有可能因为网络问题，出现程序长时间无响应，请点击“<a href='?'><font color='red'>取消</font></a>”重新上传文件";
				document.forms['uploadForm'].submit();
		};
		$("idLimit").innerHTML = fu.Limit;
		$("idExt").innerHTML = fu.ExtIn.join("，");
		$("idBtndel").onclick = function(){ fu.Clear(); }
		</script>
	<!--{else}-->
		你没有参加此次活动，不能上传照片
	<!--{/if}-->
<!--{/if}-->